import Layout from '@/views/layout/index.vue'

export const console = {
  path: '/console',
  component: Layout,
  redirect: '/console/index',
  children: [
    {
      path: 'index',
      component: () => import('@/views/console/index.vue'),
      meta: { title: '控制台', icon: 'Monitor' },
      name: 'consoleIndex'
    }
  ]
}

export const autoresponse = {
  path: '/autoresponse',
  component: Layout,
  redirect: '/autoresponse/index',
  children: [
    {
      path: 'index',
      component: () => import('@/views/autoresponse.vue'),
      meta: { title: '自动回复', icon: 'ChatDotSquare' },
      name: 'autoresponseIndex'
    }
  ]
}

export const myfriend = {
  path: '/myfriend',
  component: Layout,
  redirect: '/myfriend/index',
  children: [
    {
      path: 'index',
      component: () => import('@/views/myfriend.vue'),
      meta: { title: '我的好友', icon: 'User' },
      name: 'myfriendIndex'
    }
  ]
}

export const mygroup = {
  path: '/mygroup',
  component: Layout,
  redirect: '/mygroup/index',
  children: [
    {
      path: 'index',
      component: () => import('@/views/mygroup.vue'),
      meta: { title: '我的群聊', icon: 'ScaleToOriginal' },
      name: 'mygroupIndex'
    }
  ]
}

export const timedTask = {
  path: '/timedTask',
  component: Layout,
  redirect: '/timedTask/index',
  children: [
    {
      path: 'index',
      component: () => import('@/views/timedTask.vue'),
      meta: { title: '定时任务', icon: 'Timer' },
      name: 'timedTaskIndex'
    }
  ]
}
